﻿class Config(object): 
    # 创建配置，用类
    # 任务列表
    JOBS = [  
        {  # 任务，每隔10分钟执行一次
            'id': 'job1',
            'func': '__main__:task_expire', # 我的客户过期检查
            'args': () ,
            'trigger': 'interval', # interval表示循环任务
            'seconds': 36000,
        }
    ]

BASE_PATH = "../db/"
TRAIN_PATH = "train/"
TEST_PATH = "test/"

HOME_HOST = 'http://www.lxyuan.net'
PORT = 5001
DB_NAME = "essc_m_wx"
ROOT_PATH = "c:/essc"

APP_NAME = '/essc/'
API_IMAGE_DOWNLOAD = HOME_HOST + ':' + str(PORT) +APP_NAME + 'api/image/download/'
API_TRANSFORM_ANNEX_DOWNLOAD = HOME_HOST + ':' + str(PORT) + APP_NAME + 'api/transform/annex/'
API_BORROWFORM_ANNEX_DOWNLOAD = HOME_HOST + ':' + str(PORT) + APP_NAME + 'api/borrow/annex/'
API_PAYFORM_ANNEX_DOWNLOAD = HOME_HOST + ':' + str(PORT) + APP_NAME + 'api/payform/annex/'
API_EXPENSEFORM_ANNEX_DOWNLOAD = HOME_HOST + ':' + str(PORT) + APP_NAME + 'api/expenseform/annex/'

API_TRANSFORMRECORDER_ANNEX_DOWNLOAD = HOME_HOST + ':' + str(PORT) + APP_NAME + 'api/transformrecorder/annex/'

#DB_PATH = "E:/workspace/ESSC/db/essc.db"
DB_HOST = "127.0.0.1"
DB_USER = "root"
DB_PASSWORD = "lxyessc_2020"

HELP_PATH = ROOT_PATH + "/" + "help"
HELP_TREE_PATH = ROOT_PATH + "/" + "tree"

UPLOAD_ICON_PATH = "icon"

UPLOAD_PATH=ROOT_PATH + "/" + "upload"
UPLOAD_IDCARD_PATH = "idcard"
UPLOAD_GONGSHANG_PATH = "gongshang"
UPLOAD_WORKORDER_PATH = "workorderdetailform"
UPLOAD_INNERWORKORDER_PATH = "innerworkorderdetailform"
UPLOAD_KEEPACCOUNT_PATH = "keepaccountdetailform"
UPLOAD_TRANSFORMRECORDER = "transformrecorder"
UPLOAD_WORKORDER_PATH_ANNEX = UPLOAD_WORKORDER_PATH + "/" + "annex"
UPLOAD_INNERWORKORDER_PATH_ANNEX = UPLOAD_INNERWORKORDER_PATH + "/" + "annex"
UPLOAD_KEEPACCOUNT_PATH_ANNEX = UPLOAD_KEEPACCOUNT_PATH + "/" + "annex"
UPLOAD_TRANSFORMRECORDER_ANNEX = UPLOAD_TRANSFORMRECORDER + "/" + "annex"


DOWNLOAD_PATH=ROOT_PATH  + "/" + "download"
DOWNLOAD_PATH_TRANSFORM ="transform"
DOWNLOAD_PATH_INNERWORKORDER_ANNEX = ROOT_PATH + "/upload/innerworkorderform/annex"
DOWNLOAD_PATH_TRANSFORM_ANNEX = UPLOAD_PATH + DOWNLOAD_PATH_TRANSFORM + "/" + "annex"
DOWNLOAD_PATH_TRANSFORM_ANNEX1 = ROOT_PATH + "/upload/transform/annex"
DOWNLOAD_PATH_BORROW_ANNEX = ROOT_PATH + "/upload/borrow/annex"
DOWNLOAD_PATH_PAYFORM_ANNEX = ROOT_PATH + "/upload/payform/annex"
DOWNLOAD_PATH_EXPENSEFORM_ANNEX = ROOT_PATH + "/upload/expenseform/annex"
DOWNLOAD_PATH_TRANSFORMRECORDER_ANNEX = UPLOAD_PATH+ "/" + UPLOAD_TRANSFORMRECORDER_ANNEX


DOWNLOAD_PATH_TRANSFORM_XLSX ="transform_{id}.xlsx"

TEMPLATE_PATH=ROOT_PATH + "/" + "template"
QRCode_PATH = ROOT_PATH + "/" + "pic"
TEMPLATE_XLSX = "execle"

TEMPLATE_TRANSFORM_XLSX ="transform20200803.xlsx"

